import { FormSchema } from "/@/components/Form";
import { GenderEnum } from "/@/enums/genderEnum";
import { DescItem } from "/@/components/Description";
import { defaultDescRender } from "/@/hooks/core/useDefault";

export const descSchema: DescItem[] = [
  {
    field: "collegeName",
    label: "学院名称",
  },
  {
    field: "leader",
    label: "学院负责人",
    render: defaultDescRender,
  },
  {
    field: "email",
    label: "学院邮箱",
    render: defaultDescRender,
  },
  {
    field: "phone",
    label: "学院电话",
    render: defaultDescRender,
  },
];

export const formSchemas: FormSchema[] = [
  {
    field: "gender",
    component: "RadioGroup",
    label: "性别",
    componentProps: {
      options: [
        { label: "男", value: GenderEnum.Male },
        { label: "女", value: GenderEnum.Female },
        { label: "保密", value: GenderEnum.Secret },
      ],
    },
  },
  {
    field: "qq",
    component: "Input",
    label: "QQ号",
  },
  {
    field: "wechat",
    component: "Input",
    label: "微信号",
  },
  {
    field: "email",
    component: "Input",
    label: "邮箱",
  },
  {
    field: "phone",
    component: "Input",
    label: "联系电话",
  },
  {
    field: "introduction",
    component: "InputTextArea",
    label: "个人简介",
    componentProps: {
      rows: 4,
    },
  },
];
